
#1.直接使用for循环来遍历字典

# student = {
#     'id': 1,
#     'name': 'zhangsan',
#     'score': 99
# }
# for key in student:
#     print(key, student[key])


# student = {
#     'id': 1,
#     'name': 'zhangsan',
#     'score': 99
# }

# print(student.keys())
# print(student.values())
# print(student.items())


student = {
    'id': 1,
    'name': 'zhangsan',
    'score': 99
}
for key, value in student.items():
    print(key, value)

